package com.tosit.bmx.mapper;

import com.tosit.bmx.domian.Area;
import com.tosit.bmx.domian.AreaExample;
import java.util.List;
import com.tosit.bmx.domian.AreaUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AreaMapper {
    long countByExample(AreaExample example);

    int deleteByExample(AreaExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Area record);

    int insertSelective(Area record);

    List<Area> selectByExample(AreaExample example);

    Area selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Area record, @Param("example") AreaExample example);

    int updateByExample(@Param("record") Area record, @Param("example") AreaExample example);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    //-----------------------------------------------------------
    List<Area> selectAll();

    int deleteByIds(@Param("ids") List<Integer> ids);


    int insertRelate(@Param("userIds")List<AreaUser> userIds);

    int deleteRelate(@Param("userIds")List<Integer> userIds);
}